package com.share.wechat.fristpage.entity;

import javax.persistence.Entity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 答案的实体类
 * Created by er on 2018/1/16.
 */
public class AnswerEntity implements Serializable{
    /**
     * id
     */
    private String id;

    /**
     * 问题
     */
    private String question;
    /**
     * 选项
     */
    private List<String> choices;
    /**
     * 答案
     */
    private String answer;
    /**
     * 当前的题号
     */
    private int number;
    /**
     * 总的题目
     */
    private int sum;
    /**
     * 开始答题时间
     */
    private Date endDate;
    /**
     * 答题结束时间
     */
    private Date endData;


    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public List<String> getChoices() {
        return choices;
    }

    public void setChoices(List<String> choices) {
        this.choices = choices;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Date getEndData() {
        return endData;
    }

    public void setEndData(Date endData) {
        this.endData = endData;
    }

    @Override
    public String toString() {
        return "AnswerEntity{" +
                "question='" + question + '\'' +
                ", choices=" + choices +
                ", answer='" + answer + '\'' +
                ", number=" + number +
                ", sum=" + sum +
                ", endDate=" + endDate +
                ", endData=" + endData +
                '}';
    }
}
